﻿#ifndef EKEDATACACHE_H
#define EKEDATACACHE_H


#include<QString>
#include<QStandardItemModel>
#include"Common/ekecase.h"
#include "ekeresult.h"

class ekeDataCache
{
public:
    ekeDataCache();

    void setResult(const QString& caseName,ekeResult& result);
    void generateModel(QStandardItemModel*model);
    int getAllCaseCount();
    QVector<EKEChildCase> ToVector();
    QMap <QString,EKECase> _sheetEkeCases;
    EKEChildCase getChildCaseByCaseNumber(const QString& caseName);
    ekeResult getResultByTestCaseNumber(const QString& caseName);
protected:
public:
    QMap <QString,ekeResult> _TestResult;
};

#endif // EKEDATACACHE_H
